package com.hzb.shop.goods.service;

import com.hzb.shop.goods.entiy.ShopGoodsStock;
import com.hzb.shop.goods.mapper.ShopGoodsStockMapper;
import com.hzb.shop.goods.rpc.ShopGoodsStockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2017/9/11.
 */
@Service
public class ShopGoodsStockServiceImpl implements ShopGoodsStockService {
    @Autowired
    private ShopGoodsStockMapper ShopGoodsStockMapper;

    public int add(ShopGoodsStock shopGoodsStock) {
        return ShopGoodsStockMapper.add(shopGoodsStock);
    }

    public int update(ShopGoodsStock shopGoodsStock) {
        return ShopGoodsStockMapper.update(shopGoodsStock);
    }

    public ShopGoodsStock get(ShopGoodsStock shopGoodsStock) {
        return ShopGoodsStockMapper.get(shopGoodsStock);
    }

    public List<ShopGoodsStock> findList(ShopGoodsStock shopGoodsStock) {
        return ShopGoodsStockMapper.findList(shopGoodsStock);
    }

    public int delete(ShopGoodsStock shopGoodsStock) {
        return ShopGoodsStockMapper.delete(shopGoodsStock);
    }
}
